//
//  LKManagerAlianceListCell.m
//  Mideleague_Shop
//
//  Created by Zhiwang on 2020/5/26.
//  Copyright © 2020 Zhiwang. All rights reserved.
//

#import "LKManagerAlianceListCell.h"
#import "NSString+Regex.h"
@interface LKManagerAlianceListCell()

@property (weak, nonatomic) IBOutlet UILabel *typeLabel;
@property (weak, nonatomic) IBOutlet UILabel *userNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *userPhoneLabel;
@property (weak, nonatomic) IBOutlet UILabel *agentNameLabel;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *statuLabel;
@property (weak, nonatomic) IBOutlet UILabel *refererLabel;
@property (weak, nonatomic) IBOutlet UILabel *currentStatuLabel;


@end


@implementation LKManagerAlianceListCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.backgroundColor = viewDefualtColor;
    self.bgView.layer.cornerRadius = 4;
    self.bgView.layer.masksToBounds = YES;
    // Initialization code
}
-(void)setModel:(LkMyShopOpenStatusListModel *)model{
    _model = model;
    self.userNameLabel.text = _model.user_name;
    self.userPhoneLabel.text = _model.user_phone;
    self.agentNameLabel.text = [NSString stringWithFormat:@"代理：%@",_model.agent_name];
    self.refererLabel.text = [NSString stringWithFormat:@"推荐人：%@",_model.referrer_name];
    if ([_model.mcc_jc_id isEqualToString:@"0"]) {
        self.typeLabel.text = @"无类型";
    }else{
        self.typeLabel.text = [NSString backShopTypeAccordingType:[NSString stringWithFormat:@"%@",_model.mcc_jc_id]];
    }

    self.currentStatuLabel.text = [NSString backShopStatusAccordingStatus:_model.status];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
